package com.lening.mapper;

import com.lening.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 创作时间：2019/8/22 9:46
 * 作者：李增强
 */
public interface StuMapper {

    List<PowerBean> getPowerList();
    List<StuBean> getStuList();

    StuBean getStuById(Integer id);

    List<GradeBean> getGradeList();

    void updateStuGrade(@Param("id") Integer id, @Param("gid") Integer gid);

    List<TeacherBean> getTeacherList();

    List<RoomBean> getRoomList();

    GradeBean getGradeByGid(Integer gid);

    void updateGradeRoom(@Param("gid") Integer gid, @Param("rid") Integer rid);

    TeacherBean getTeacherByTid(Integer tid);

    void updateGradeTeacher(@Param("gid") Integer gid, @Param("tid") Integer tid);

    void insertStu(StuBean stuBean);
}
